package tag17_01_08.layouts;

import java.awt.GridLayout;

import javax.swing.JButton;
import javax.swing.JFrame;

public class Thema5_UseGrid {

	public static void main(String[] args){
		
		
		JFrame frame = new JFrame();
		
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		
		frame.setBounds(100, 200, 600, 600);
		
		frame.setLayout(new GridLayout(4, 3));
		
		for(int i = 0;i<12;i++){
			frame.add(new JButton("B" + i));
		}
		
		
		frame.setVisible(true);
		
	}
	
}
